package DesignPatern.A02_工厂模式.B站;

/**
 * @Author: Du
 * @Date: 2021/7/21 8:37
 *
 * 将创建对象的过程放入到工厂中，由工厂统一管理
 *
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        Factory huaweiFactory = new HuaweiFactory();
        huaweiFactory.createPhone();
    
        Factory xiaomiFactory = new XiaomiFactory();
        xiaomiFactory.createPhone();
    }
}
